<?php if (!defined('THINK_PATH')) exit();?><div class="bjui-pageContent">
<form action="<?php echo U('Forms/save_comment');?>" data-callback="dialogFormCall" data-toggle="validate" data-alertmsg="false" class="dialogForm">
    <input type="hidden" name="id" value="<?php echo ($va["id"]); ?>"/>
    <div class="media">
        <a class="pull-left pd10" href="javascript:void(0))">
            <img src="<?php echo ($va["user"]["head_img"]); ?>" width="50" alt="">
        </a>
        <div class="media-body">
            <p class="clearfix"><span class="pull-right"><?php echo ($va["time"]); ?></span><?php echo ($va["user"]["mobile"]); ?></p>
            <div class="media-border">
                 <?php echo ($va["contents"]); ?>
                <!-- <div>
                    <a href="/Public/images/1584936.jpg" target="_blank"><img src="/Public/images/1584936.jpg" alt="华为" width="90" /></a>
                    <a href="/Public/images/14393692.jpg" target="_blank"><img src="/Public/images/14393692.jpg" alt="海尔" width="90" /></a>
                </div> -->
            </div>
            <?php if($va["replay"] != null): ?><div class="media">
                <a class="pull-left pd10" href="#">
                    <img src="/Public/images/admin.jpg" width="50" alt="admin">
                </a>
                <div class="media-body">
                    <p><span class="pull-right"><?php echo ($va["repaly"]["time"]); ?></span><?php echo ($va["replay"]["adminname"]); ?></p>
                                                   <?php echo ($va["replay"]["contents"]); ?>
                </div>
            </div><?php endif; ?>
        </div>
    </div>
    <?php if($va["replay"] == null): ?><div class="form-group" style="margin-top: 10px;">
	        <textarea name="contents" style="width: 100%;height: 70px"></textarea>
	    </div><?php endif; ?>
 </form>
</div>
<script>
    $(function () {
        $('.reply-comment').click(function () {
            alert('回复成功');
        });
    });
</script>

<div class="bjui-pageFooter">
		
	<?php if(save == save): ?><ul>
			<li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
	<?php elseif(save == close): ?>
	    <ul>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
	<?php elseif(save == page and $show != null): ?>
		<ul>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
		    <div class="pages">
		        <span>每页&nbsp;</span>
		        <div class="selectPagesize">
		            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
		                <option value="<?php echo ($show['listrow']); ?>"><?php echo ($show['listrow']); ?></option>
		                <option value="60">60</option>
		                <option value="120">120</option>
		                <option value="150">150</option>
		            </select>
		        </div>
		        <span>&nbsp;条，共 <?php echo ($show['total']); ?> 条</span>
		    </div>
		    <div class="pagination-box" data-toggle="pagination" data-total="<?php echo ($show['total']); ?>" data-page-size="<?php echo ($show['listrow']); ?>" data-page-current="1">
		    </div>
	<?php elseif(save == page and $show == null): ?>
		<ul>
			<li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
		</ul>
	<?php else: ?>
		<ul>
			<li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
		</ul><?php endif; ?>

</div>